
		<div id="primarysidebar">
			<div class="widget"><img src="img/01.gif" alt="" /></div>
		<div id="gab_tabs-3" class="widget gab_tabs">
			<div class="widgetinner">
				<h3 class="widgettitle">POSTS</h3>
				
				<div id="">
					<ul class="tabs">
						<li><a href="#first">Latest</a></li>
						<li><a href="#third">Popular</a></li>
						<li><a href="#second">Comments</a></li>
					</ul>
					<div class="panes">
						<div>
							<ul>
							<?php if(isset($set_Latest)){
								$i=1;
								foreach ($set_Latest as $Latest){
								if($i <=5 ){
							?>
								<li>
								<a href="<?php echo $this->webroot.'news/show/'.$Latest['News']['id'];?>" title="Permalink to <?php echo  $Latest['News']['name'];?>" rel="bookmark" class="pad"><?php echo $Latest['News']['name'];?></a>
								<span class="block">on <?php echo date("F j, Y",strtotime($Latest['News']['created']));?> by <a href="<?php echo $this->webroot.'news/auth/'.$Latest['News']['user_id'];?>" title="Posts by <?php echo $Latest['User']['name'];?>" rel="author"><?php echo $Latest['User']['name'];?></a> - <a href="<?php echo $this->webroot.'news/show/'.$Latest['News']['id'];?>/#respond" title="Comment on <?php echo $Latest['News']['name'];?>">No Comment</a></span>
								</li>
								<?php }
									$i++;
								}
							} 
							else {?>
								<li>
									Ở đây không có bài viết
								</li>
							<?php } ?>
							</ul>
						</div>
						
						<div>
							<ul>
							<?php if(isset($set_Popular)){
								$i=1;
								foreach ($set_Popular as $Popular){
								if($i <=5 ){
							?>
								<li>
								<a href="<?php echo $this->webroot.'news/show/'.$Popular['News']['id'];?>" title="Permalink to <?php echo  $Popular['News']['name'];?>" rel="bookmark" class="pad"><?php echo $Latest['News']['name'];?></a>
								<span class="block">on <?php echo date("F j, Y",strtotime($Popular['News']['created']));?> by <a href="<?php echo $this->webroot.'news/auth/'.$Popular['News']['user_id'];?>" title="Posts by <?php echo $Popular['User']['name'];?>" rel="author"><?php echo $Popular['User']['name'];?></a> - <a href="<?php echo $this->webroot.'news/show/'.$Popular['News']['id'];?>/#respond" title="Comment on <?php echo $Popular['News']['name'];?>">No Comment</a></span>
								</li>
								<?php }
									$i++;
								}} else {?>
								<li>
									Ở đây không có bài viết
								</li>
							<?php } ?>
								</ul>
						</div>
						

					<div>
							<div class="widget widget_recent_comments"><h2 class="widgettitle">Recent Comments</h2>
							<ul id="recentcomments">
							<?php if(isset($recentcomments)){
								$i =1;
								foreach ($recentcomments as $recentcomment){
									if($i <=5 ){
							?>
								<li class="recentcomments">
								<?php 
								if($recentcomment['User']['username']){
									echo $recentcomment['User']['username'];}
								else{
									echo $recentcomment['Comment']['comment_author'];
								}?> on 
								<a href="<?php echo $this->webroot.'news/show/'.$recentcomment['Comment']['new_id'];?>/#comment-<?php echo $recentcomment['Comment']['id'];?>"><?php echo $recentcomment['New']['name'];?></a>
								</li>
							<?php }
									$i++;
								}	
							} else {?>
								<li>
									Ở đây không có bình luận
								</li>
							<?php } ?>
							</ul>
							</div>
					</div>
				</div>
		
				</div>
			</div>
		</div><!-- End of rightColAd -->
		
		<div class="clear"></div>
	</div><!-- End of PrimaryWrapper (Featured block + Mid colum block + 120+600 ad) -->
    